#!/bin/bash
rm -r /home/ckgit/server/announcement/migrations/00*
rm -r /home/ckgit/server/develop/migrations/00*
rm -r /home/ckgit/server/log/migrations/00*
rm -r /home/ckgit/server/need/migrations/00*
rm -r /home/ckgit/server/notice/migrations/00*
rm -r /home/ckgit/server/order/migrations/00*
rm -r /home/ckgit/server/question/migrations/00*
rm -r /home/ckgit/server/software/migrations/00*
rm -r /home/ckgit/server/store/migrations/00*
rm -r /home/ckgit/server/storehouse/migrations/00*
rm -r /home/ckgit/server/system/migrations/00*
rm -r /home/ckgit/server/user/migrations/00*

rm /home/ckgit/server/db.sqlite3

python3 /home/ckgit/server/manage.py runserver 0.0.0.0:80 &

python3 /home/ckgit/server/manage.py makemigrations
python3 /home/ckgit/server/manage.py migrate

source /home/ckgit/server/utils/test.sh
python3 tests.py